package com.it.jzs.controller;

import com.it.jzs.dao.admin.AdminLinkMapper;
import com.it.jzs.service.admin.AdminLinkService;
import com.it.jzs.vo.Result;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("link")
@CrossOrigin
public class LinkController {

    @Resource
    private AdminLinkService linkService;

    @GetMapping("")
    public Result<Object> selectAll() {
        Result<Object> result = linkService.selectAll();
        return result;
    }
}
